package com.itheima.d3_homework.timu1;

public class Test {
    public static void main(String[] args) {
        Student.setClassRoom("金燕龙110");

        Student.setId(1);
        Student.setName("大郎");

        System.out.println("学号为" + Student.getId() + "的" + Student.getName() + "在教室" + Student.getClassRoom() + "自习");

        Student.setId(2);
        Student.setName("金莲");
        System.out.println("学号为" + Student.getId() + "的" + Student.getName() + "在教室" + Student.getClassRoom() + "自习");


        System.out.println("更换后=========");
        Student.setClassRoom("金燕龙111");

        Student.setId(1);
        Student.setName("大郎");

        System.out.println("学号为" + Student.getId() + "的" + Student.getName() + "换到教室" + Student.getClassRoom() + "自习");

        Student.setId(2);
        Student.setName("金莲");
        System.out.println("学号为" + Student.getId() + "的" + Student.getName() + "换到教室" + Student.getClassRoom() + "自习");

    }
}
